<?php

class globals {
    const MAX_UPPLOAD_FILE = 2097152;

	const CMS_CONTENT_TYPE_VIDEO = 3;
	const CMS_CATEGORY_ONLINE_CLASS = 1;
	const CMS_CATEGORY_TEACHER_STUDIES = 3;
	const CMS_CATEGORY_ISTS_NEWS = 4;
	const CMS_CATEGORY_ISTS_SUCCESS_STORY = 5;
	const CATEGORY_PAGES = 2;
	const CMS_MENU_ITEM_NODE__SUCCESS_STORY = 8;
	const CMS_MENU_ITEM_NODE__WELCOME_MESSAGE = 7;

	
	const CONTENT_HELP_MESSAGE_1 = 40;
	
	
	const DATE_FORMAT_VIDEO = "F d,Y";
	
	
	
	const MAX_PER_PAGE_VIEDEO = 20;
#########
## Payment settings

const library_search_type__LESSONS = 1;
const library_search_type__VIDOES = 2;
const library_search_type__ONLINE_RESEARHCE = 3;
public static $library_search_types = array(
 self::library_search_type__LESSONS => 'Lessons'
,self::library_search_type__VIDOES => 'Videos'
,self::library_search_type__ONLINE_RESEARHCE =>'Online Researches'
);
public static $library_search_types_urls = array(
self::library_search_type__LESSONS =>'lesson_donwload'
,self::library_search_type__VIDOES=>'content_show'
,self::library_search_type__ONLINE_RESEARHCE =>'online_resaerch_showLesson'
);
public static $langs = array('ar'=>'Arabic');

    public static $ADMIN_SETTINGS = array(
        'misc' => array('login_link' => 'http://ameen-pc/afb_cpe/web/index.php/login')
        , 'mail' => array(
            'user_afb_bank_information' => 'kh_kh6@hotmail.com', //finace
            'to_admin_new_sub_account_request_new' => 'kh_kh6@hotmail.com', // admin
        )
    );
    public static $DEFAULT_MAIL_OPTIONS = array(
        'from' => 'info@afbfx.com'
    );
    public static $MAILS = array(
        'cms_profile_succ_activiation_link' => array(
            'from' => "no-replay@ists.com"
            , 'subject' => "Acctivation link"
            , 'body' => "Dear %display_name%,\n please activiate yor account form the link below \n%link% \n\nThank u for regsitering with us"
        ),
        'cms_profile_send_password' => array(
            'from' => "no-replay@ists.com"
            , 'subject' => "Password Reset"
            , 'body' => "Dear %display_name%,\n please find your password below \n%new_pass% \n\nThank u"
        ),
    );
    public static $APPROVED_FILE_TYPES_CATS = array(
        'web_images' => array(
            'image/jpeg',
            'image/pjpeg',
            'image/png',
            'image/x-png',
            'image/gif',
        )
        , 'doc_files' => array(
        'application/msword' => 'doc',
        'application/pdf' => 'pdf',
        'application/x-pdf' => 'pdf2',
        'application/vnd.ms-excel' => 'xls',
        'image/jpeg' => 'jpg',
        'image/pjpeg' => 'jpg',
        'image/png' => 'png',
        'image/x-png' => 'png',
        'image/gif' => 'gif',
        'application/x-rar-compressed' => 'rar',
        'application/x-zip' => 'zip',
        'application/octet-stream' => 'exe',
        'application/x-dosexec' => 'exe',
        'application/vnd.ms-powerpoint' => 'ppt',
        'application/vnd.ms-powerpoint' => 'pot',
        'application/vnd.ms-powerpoint' => 'pps',
        'application/vnd.ms-powerpoint' => 'ppa',
        'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'pptx',
        'application/vnd.ms-excel' => 'xls',
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'docx',
        ),
        'web_images_doc_files' => array(
            'image/jpeg',
            'image/pjpeg',
            'image/png',
            'image/x-png',
            'image/gif',
            'application/pdf',
            'application/x-pdf',
            'text/plain',
            'application/msword' => 'doc',
            'application/vnd.ms-excel' => 'xls',
        ),
        'admin_files' => array(
            'image/jpeg',
            'image/pjpeg',
            'image/png',
            'image/x-png',
            'image/gif',
            'application/pdf',
            'application/x-pdf',
            'text/plain',
            'application/msword' => 'doc',
            'application/vnd.ms-excel' => 'xls',
            'application/octet-stream' => 'exe',
            'application/exe' => 'exe',
            'application/x-exe' => 'exe',
            'application/x-winexe' => 'exe',
            'vms/exe' => 'exe',
            'application/x-msdos-program' => 'exe',
            'application/dos-exe' => 'exe',
            'application/x-msdownload' => 'exe',
            'application' => 'exe',
            'application/x-rar-compressed' => 'rar',
            'application/x-zip' => 'zip',
            'application/octet-stream' => 'bin',
            'application/octet-stream' => 'exe',
            'application/x-dosexec' => 'exe',
        'application/vnd.ms-powerpoint' => 'ppt',
        'application/vnd.ms-powerpoint' => 'pot',
        'application/vnd.ms-powerpoint' => 'pps',
        'application/vnd.ms-powerpoint' => 'ppa',
        'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'pptx',
        'application/vnd.ms-excel' => 'xls',
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'docx',
        ),
    );
    public static $studies_data_types = array(
        'application/msword' => 'doc',
        'application/pdf' => 'pdf',
        'application/x-pdf' => 'pdf2',
        'application/vnd.ms-excel' => 'xls',
        'image/jpeg' => 'jpg',
        'image/pjpeg' => 'jpg',
        'image/png' => 'png',
        'image/x-png' => 'png',
        'image/gif' => 'gif',
        'application/x-rar-compressed' => 'rar',
        'application/x-zip' => 'zip',
        'application/octet-stream' => 'exe',
        'application/x-dosexec' => 'exe',
        'application/vnd.ms-powerpoint' => 'ppt',
        'application/vnd.ms-powerpoint' => 'pot',
        'application/vnd.ms-powerpoint' => 'pps',
        'application/vnd.ms-powerpoint' => 'ppa',
        'application/vnd.openxmlformats-officedocument.presentationml.presentation' => 'pptx',
        'application/vnd.ms-excel' => 'xls',
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => 'docx',
    );

	
	
    public static function numberFormat($num) {
        return number_format(abs($num), 2);
    }

}
